class XbbCellModel{

  final String name;  // 名称
  final String price; // 最新价
  final double amplitude; // 涨跌幅

  XbbCellModel({this.name,  this.price, this.amplitude});

  factory XbbCellModel.fromJson(Map<String, dynamic> json) {
    return XbbCellModel(
      name: json['name'],
      price: json['price'],
      amplitude: json['amplitude'],
    );
  }

  Map<String, dynamic> toJson() => {
    'name': name,
    'price': price,
    'amplitude': amplitude,
  };

}